<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        'use strict';
        var age = 3;

        var newArray = [1,2,3,4,5,6,444,555,666];

        /*
        * JAVA 中 for(type XX: element){}
        * */
        // 这里num给的是索引--->index
        for (var num in newArray){
            console.log(newArray[num])
        }

/*        //函数
        newArray.forEach(function (value){
            console.log(value)
        })*/



      /*  if(age>3){
            alert("hhh")
        }else if(age<3){
            alert("kuwa~")
        }else {
            alert("人生价值！")
        }*/

    /*    while(age<100){
            age++;
            console.log(age);
        }*/

       /* for (let i = 0; i < 100; i++) {
            console.log(i);
        }*/

    </script>
</head>
<body>

</body>
</html>